package com.todo.event.activity.application.service;

import com.todo.common.common.entity.response.page.PageResult;
import com.todo.event.activity.application.entity.bo.EventActivityBO;
import com.todo.event.activity.application.entity.condition.EventActivityConditionBO;
import com.todo.event.activity.common.enums.EventActivityStatusEnum;


import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/7 13:13
 * @description
 */
public interface EventActivityService {

    /**
     * 新增事件活动
     *
     * @param eventActivityBO
     * @return
     */
    Boolean insertEventActivity(EventActivityBO eventActivityBO);

    /**
     * 更新事件活动
     *
     * @param eventActivityBO
     * @return
     */
    Boolean updateEventActivity(EventActivityBO eventActivityBO);

    /**
     * 根据主键删除事件活动
     *
     * @param id
     * @return
     */
    Boolean removeEventActivity(Long id);

    /**
     * 根据主键查询事件活动
     *
     * @param id
     * @return
     */
    EventActivityBO queryEventActivityById(Long id);

    /**
     * 根据决策Id查询运行中事件活动列表
     *
     * @param decisionId
     * @return
     */
    List<EventActivityBO> queryRunningEventActivityByDecision(Long decisionId);

    /**
     * 更新事件活动状态
     *
     * @param id
     * @param oldStatus
     * @param newStatus
     * @return
     */
    Boolean updateEventActivityStatus(Long id, EventActivityStatusEnum oldStatus, EventActivityStatusEnum newStatus);

    /**
     * 多条件查询事件活动
     *
     * @param eventActivityConditionBO
     * @return
     */
    PageResult<EventActivityBO> queryEventActivityPageByCondition(EventActivityConditionBO eventActivityConditionBO);
}
